<template>
  <view class="content">
    <view class="list-item" v-for="(item,index) in 5" :key="index">
      <view class="list-item__container">
        <view class="list-item__header">
          <view class="list-item__icon">
            <view class="list-item__icon-img">
              <image src="/static/logo.png" mode="scaleToFill" class="img"></image>
            </view>
          </view>
        </view>
        <view class="list-item__content list-item__content--center">
          <text class="list-item__content-title">双行标题</text>
          <text class="list-item__content-note">摘要信息</text>
        </view>
        <view class="list-item__extra">
          <view class="list-item__extra-text">12:21</view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        Name: '',
      }
    },
    onLoad(options) {
      uni.setNavigationBarTitle({
        title: options.Name
      });
      this.Name = options.Name
    },
    methods: {}
  }
</script>

<style lang="scss" scoped>
  .img {
    width: 100%;
    height: 100%;
  }

  .content {
    display: flex;
    flex-direction: column; 
    padding:0 32rpx;
    .list-item{
      display: flex;
      font-size: 32rpx;
      position: relative;
      justify-content: space-between;
      align-items: center;
      background-color: #fff;
      flex-direction: row;
      cursor: pointer;
      padding: 32rpx;
      margin-top: 32rpx;
      border-radius: 28rpx;
      .list-item__container{
        position: relative;
        display: flex;
        flex-direction: row;
        flex: 1;
        overflow: hidden;
        .list-item__header {
          display: flex;
          flex-direction: row;
          align-items: center;
          .list-item__icon{
            margin-right: 18rpx;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            .list-item__icon-img{
              display: block;
              height: 80rpx;
              width: 80rpx;
              margin-right: 20rpx;
              border-radius: 16rpx;
              overflow: hidden;
            }
          }
        }
        .list-item__content{
          display: flex;
          padding-right: 16rpx;
          flex: 1;
          color: #3b4144;
          flex-direction: column;
          justify-content: space-between;
          overflow: hidden;
          .list-item__content-title{
            font-size: 28rpx;
            color: #3b4144;
            overflow: hidden;
          }
          .list-item__content-note{
            margin-top: 6rpx;
            color: #999;
            font-size: 24rpx;
            overflow: hidden;
          }
        }
        .list-item__content--center{
          justify-content: center;
        }
        .list-item__extra{
          display: flex;
          flex-direction: row;
          justify-content: flex-end;
          align-items: center;
          .list-item__extra-text{
            color: #999;
            font-size: 24rpx;
          }
        }
      }
    }
  }
  
</style>